package vip.xiaonuo.supplier.modular.base.categories.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 产品分类实体
 *
 * @author Mr.wu
 * @date  2025/02/28 14:52
 **/
@Getter
@Setter
@TableName("SUPPLIER_CATEGORIES")
public class SupplierCategories extends CommonEntity {

    /** 分类ID */
    @TableId
    @Schema(description = "分类ID")
    private String id;

    /** 父ID */
    @Schema(description = "父ID")
    private String parentId;

    /** 分类编码 */
    @Schema(description = "分类编码")
    private String categoriesCode;

    /** 分类名称 */
    @Schema(description = "分类名称")
    private String categoriesName;

    /** 分类图片 */
    @Schema(description = "分类图片")
    private String categoriesImage;

    /** 是否销售时隐藏 */
    @Schema(description = "是否销售时隐藏")
    @Trans(type = TransType.DICTIONARY, key = "MENU_VISIBLE")
    private String categoriesHideforsale;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;

    /** 数据归属 */
    @Schema(description = "数据归属")
    private String companyId;
}
